/**
 * @(#)ActionTypeDAOImpl.java 2017年7月8日
 * Copyright(C) 2017 ZHEXIN IT CO.,LTD. All rights reserved.
 */
package org.jsbd.boss.dao.impl;


import java.util.List;

import org.jsbd.boss.dao.IActionTypeDAO;
import org.jsbd.boss.domian.channel.ActionType;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * TODO 请加入本类的说明
 * @author <a href="mailto:xupengcheng@zhexinit.com" >徐鹏程</a>
 * @version 1.0.0
 */
@Service
public class ActionTypeDAOImpl extends CrackBaseDao implements IActionTypeDAO {
	public static final Logger LOGGER = LoggerFactory.getLogger(ActionTypeDAOImpl.class);

	/* (non-Javadoc)
	 * @see org.jsbd.boss.dao.IActionTypeDAO#selectAll()
	 */
	@Override
	public List<ActionType> selectAll() {
		return super.queryForList("qy_retent_filter_action.SELECT_ACTION");
	}

	/* (non-Javadoc)
	 * @see org.jsbd.boss.dao.IActionTypeDAO#insertActionType(org.jsbd.boss.domian.channel.ActionType)
	 */
	@Override
	public Integer insertActionType(ActionType actionType) {
		return (Integer) super.insert("qy_retent_filter_action.INSERT_ACTION", actionType);
	}

	/* (non-Javadoc)
	 * @see org.jsbd.boss.dao.IActionTypeDAO#deleteAction(java.lang.Integer)
	 */
	@Override
	public Integer deleteAction(Integer id) {
		return super.delete("qy_retent_filter_action.DELETE_CONFIG", id);
	}
}
